const routes = [
  {
    path: '/',
    redirect: '/chat'
  },
  {
    path: '/chat',
    name: 'chat',
    component: () => import('@/views/chat/index.vue'),
    redirect: '/chat/group-chat',
    children: [
      {
        path: 'private-chat',
        name: 'privateChat',
        component: () => import('@/views/chat/privateChat/index.vue')
      },
      {
        path: 'group-chat',
        name: 'groupChat',
        component: () => import('@/views/chat/groupChat/index.vue')
      }
    ]
  }
]
export default routes
